package com.yantong.service;

import com.yantong.pojo.Member;
import com.yantong.pojo.MemberWxcard;
import com.yantong.pojo.WxCard;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

public interface WxService {

	//公众号
	String getAccessToken(Long centreId, int terminal);

	String getCardApiTicket(Long centerId);

	String getJsapiTicket(Long centerId, int terminal);

	Map<String, String> getWxCardConfig(Long centerId, String cardId);

	String createCard(Long centreId, String content);

	String decryptCardCode(Long centreId, String encryptCode);

	void addWxCardList(Member member, List<WxCard> wxCardList, int type);

	/**
	 * 查询用户是否以领取该门店卡券
	 *
	 * @param member 用户信息
	 * @param teamId 门店id
	 * @return com.jz.wx.domain.MemberWxcard
	 * @author liaozhaogui
	 * @date 2021/2/22 13:44
	 */
	List<MemberWxcard> wxCardFlag(Member member, Long teamId, int type, String cardId);

	/**
	 * 上传图片到微信
	 *
	 * @param filePath 文件目录
	 * @param centreId 商户ID
	 * @return 上传后的文件路径
	 */
	String wxUploadImg(boolean isNetworkFile, String filePath, Long centreId, InputStream inputStream);


	/**
	 * 根据类型和用户id查询卡券
	 *
	 * @param mid, type
	 * @return com.jz.wx.domain.StoreWxCard
	 * @author huangshuai
	 * @date 2021/3/8 17:08
	 */
	List<MemberWxcard> selectbymidAndCentreIdAndType(Long mid, Long centreId, Integer type);

}
